package entreprise;
import java.io.File;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;


public class Entreprise {

	private RaisonSociale raisonSociale;
	private Departement []departements;
	
	public static void main(String[] args) {

		try {
			JAXBContext context = JAXBContext.newInstance("entreprise");
			Unmarshaller u = context.createUnmarshaller();
			Entreprise e = (Entreprise) u.unmarshal(new File("entreprise2.xml"));
			System.out.println(e.toString());
		} catch(Exception e1) {
			e1.printStackTrace();
		}


	}

}
